#ifndef  __tempAd_h   
    #define __tempAd_h
//Hal
	//ad6

//	#define F_setLed P3_0=1
	//#define F_clrLed P3_0=0
	//#define F_setPowerH P0_3=1
//	#define F_clrPowerH P0_3=0

#define F_setLedXiaShangYu P1_1=1
#define F_clrLedXiaShangYu P1_1=0
#define F_setLedTiaoDang  P0_7=1
#define F_clrLedTiaoDang  P0_7=0
#define F_setLedKai				P1_3=1
#define F_clrLedKai				P1_3=0

	#define F_setPowerL P3_4=1
	#define F_clrPowerL  P3_4=0
	#define F_setPowerH P3_5=1
	#define F_clrPowerH P3_5=0
#define D_adChannel  0x80
//Const	
		//pullup 10k
   #define   D_shortValue 253
	 #define D_offValue  4000  //断路

//Var
	#ifdef __tempAd_c 
	//bit bTG;
	bit data bAdOff;
	uint8_t data adOffNum;
	uint8_t data curTemp;
	uint8_t data higTempBuzzNum;
	bit data bHigTempBuzz;
	uint8_t holdAdHigTemp;
		//code const uint8_t displayFonts[10];
	#else
	//extern bit bTG;
	extern	uint8_t holdAdHigTemp; 
	extern 	bit data bHigTempBuzz;
	extern uint8_t data higTempBuzzNum;
	extern uint8_t data curTemp;
	extern	bit data bAdOff;
	extern uint8_t data adOffNum;
//extern code const uint8_t displayFonts[10];
	#endif

//Function
 
    void    getTemp(void)  ;

//void TG();
#endif